/*package com.ymatou.socialbizer.testcase;

import org.json.JSONArray;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.socialbizer.parameter.FirstPageNoteBean;
import com.ymatou.socialbizer.service.FirstPageNoteCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
import com.ymt.utils.tag.P2;
*//**
*大首页笔记推荐接口
*FreeMaker Template自动生成代码
*//*
@TestSuite
public class Ts_FirstPageNote{
	private static FirstPageNoteBean firstpagenoteBean;
	private static FirstPageNoteCall firstpagenoteCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("大首页笔记推荐接口");
	}

	@Before
	public void caseUp() {
		firstpagenoteBean=new FirstPageNoteBean();
		firstpagenoteCall=new FirstPageNoteCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(firstpagenoteCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_FirstPageNote_001() {
		Logger.start(true,"笔记推荐接口返回状态验证");
		try {
			//TODO 补全case代码
			//org.junit.Assert.fail();
			firstpagenoteBean.setFl("userid,pics,noteid,collectionnum,username,content,commentnum");
			firstpagenoteBean.setInfo("userid:111,cookieid:111555555555,idfa:idfavalue,imei:imeivalue,module:firstpagerecnote");
			firstpagenoteBean.setLimit("0,10");
			firstpagenoteCall.setData(firstpagenoteBean);
			firstpagenoteCall.callService();			
			Logger.comment("firstpagenoteCall send:" + firstpagenoteCall.getEntityString());
			Logger.comment("firstpagenoteCall response:" + firstpagenoteCall.getReturnData());
			Logger.verifyEquals("OK", firstpagenoteCall.getStatus(), "接口返回状态正确");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category(P2.class)
	@TestCase
	public void Tc_FirstPageNote_002() {
		Logger.start(true,"检查是否有数据返回");
		try {
			//TODO 补全case代码
			//org.junit.Assert.fail();
			firstpagenoteBean.setFl("userid,pics,noteid,collectionnum,username,content,commentnum");
			firstpagenoteBean.setInfo("userid:111,cookieid:111555555555,idfa:idfavalue,imei:imeivalue,module:firstpagerecnote");
			firstpagenoteBean.setLimit("0,10");
			firstpagenoteCall.setData(firstpagenoteBean);
			firstpagenoteCall.callService();			
			JSONArray pageNote= firstpagenoteCall.getPageNote();
			
			Logger.comment("firstpagenoteCall send:" + firstpagenoteCall.getEntityString());
			Logger.comment("firstpagenoteCall response:" + firstpagenoteCall.getReturnData());
			
			Logger.verifyNotNull(pageNote,"有返回推荐数据" );
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category(P3.class)
	@TestCase
	public void Tc_FirstPageNote_003() {
		Logger.start("笔记标签推荐");
		try {
			//TODO 补全case代码
			//org.junit.Assert.fail();
			firstpagenoteBean.setFl("userid,pics,noteid,collectionnum,username,content,commentnum");
			firstpagenoteBean.setInfo("userid:111,cookieid:111555555555,idfa:idfavalue,imei:imeivalue,module:firstpagerecnotetag");
			firstpagenoteBean.setLimit("0,10");
			firstpagenoteCall.setData(firstpagenoteBean);
			firstpagenoteCall.callService();			
			JSONArray pageNote= firstpagenoteCall.getPageNote();
			
			Logger.comment("firstpagenoteCall send:" + firstpagenoteCall.getEntityString());
			Logger.comment("firstpagenoteCall response:" + firstpagenoteCall.getReturnData());
			
			Logger.verifyNotNull(pageNote,"有返回推荐数据" );
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}*/